

package com.ylbh.modules.job.task;

import com.ylbh.common.utils.DateUtils;
import com.ylbh.modules.activity.service.SpikeActivityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 秒杀活动激活
 * 检查活动，并激活状态
 * @author mgh
 */
@Component("spikeTask")
public class SpikeTask implements ITask {
	private Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private SpikeActivityService spikeActivityService;


	public void updateState() {

	}

	@Override
	public void run(String params) {
		logger.info("秒杀活动定时任务开启");
		spikeActivityService.updateState();
		logger.info("秒杀活动定时任务执行结束");
	}
}
